﻿define(["service/service", "service/httpService"], function (service) {
    service.factory("declarationService", function (httpService) {
        var methods = {
            "get": function (params) {
                return httpService.get("/admin/declaration/get", params);
            },
            "gets": function (params) {
                return httpService.get("/admin/declaration/gets", params);
            },
            "getcode": function () {
                return httpService.get("/admin/declaration/getcode");
            },
            "alter": function (params) {
                return httpService.get("/admin/declaration/alter", params);
            },
            "delete": function (id) {
                return httpService.delete("/admin/declaration/delete/" + id);
            },
            "audit": function (params) {
                return httpService.delete("/admin/declaration/audit", params);
            },
            "getentrepot": function () {
                return httpService.get("/admin/declaration/GetEntrepot");
            }
        }
        return methods;
    });
});